<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>冻结列</title>
  <script src="./js/jexcel.js"></script>
  <script src="./js/jsuites.js"></script>
  <link rel="stylesheet" href="./css/jsuites.css" type="text/css" />
  <link rel="stylesheet" href="./css/jexcel.css" type="text/css" />
</head>

<body>
  <h1>冻结列</h1>
  <p>通过tableOverflow使用freezeColumn指令定义冻结列的数量，如下所示</p>

  <div id="spreadsheet"></div>
</body>
<script>
  jspreadsheet(document.getElementById('spreadsheet'), {
    data: null,
    minDimensions: [20, 500],
    tableOverflow: true,
    lazyLoading: true,
    tableWidth: '600px',
    freezeColumns: 2
  });
</script>

</html>